package com.weather.quartz.launch;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import com.weather.quartz.config.QuartzConfig;

@Component
public class Run implements CommandLineRunner{

	@Autowired
	QuartzConfig quartzConfig;
	
	@Override
	public void run(String... args) throws Exception {
		
		// 运行计划
		quartzConfig.printEmailTrigger();
		
	}

}
